import {URL} from './URL'
import axios from 'axios'
// 请求体
export default {
    async http({url, method, re}) {
        const {data} = await axios({
            url: URL + url,
            method: method ? method : 'get',
            data: method == 'get' ? '' : re,
            headers: {'Content-Type': 'multipart/form-data',token:localStorage.getItem('token')||''}
        })
        return data
    }
}
